package com.hcb.tonguetiphealth.widget.DIY;

import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Calendar;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.os.Handler;
import android.provider.MediaStore;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.hcb.tonguetiphealth.view.DrinksBookActivity;
import com.hcb.tonguetiphealth.view.HealthMirrorActivity;
import com.hcb.tonguetiphealth.view.HealthShareActivity;
import com.hcb.tonguetiphealth.view.LoginActivity;
import com.hcb.tonguetiphealth.view.MemberActivity;
import com.hcb.tonguetiphealth.view.MoreActivity;
import com.hcb.tonguetiphealth.view.R;
import com.hcb.tonguetiphealth.view.RecommendHealthActivity;
import com.hcb.tonguetiphealth.view.ResBookActivity;
import com.hcb.tonguetiphealth.view.SearchActivity;
import com.hcb.tonguetiphealth.widget.GeneralWidget;

public class DIYWidget extends GeneralWidget implements OnClickListener {
	
	private Activity ctx;
	private int width=0,height=0;
	private Button tbQuickSearch;

	private Handler handler;
	private Thread thread ;
	private ArrayList<ImageView> imageViews ;
	private ArrayList<String> imageUrls ;
	private ArrayList<Bitmap> bitmaps ;
	
	public DIYWidget(Context context) {
		super(context);
		ctx = (Activity)context;
		inflate(context, R.layout.widget_home, this); 
		
	}
 
	private void startCamera(){
		Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
		ctx.startActivityForResult(intent, 1);
	}
	
	@Override
	public void notifyAdapter() {
		
	}

	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		
	}
 
}
